﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LosConn.BLL;
using System.Data;

namespace LosConn.Web.Money
{
    public partial class MoneyList : BasePage.AdminBasePage
    {
        public String html = String.Empty;
        public String footer = String.Empty;
        public String payMoney = String.Empty;
        public String orderMoney = String.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Los_Order bll = new Los_Order();
                String payList = bll.GetOrderMoneyList(ref footer, Request.QueryString);
                html = payList;
                payMoney = new BLL.Los_Pay().GetPayData("").ToString();
                orderMoney = bll.GetOrderMoneyData("").ToString();

                BLL.Los_Retail bllRetail = new BLL.Los_Retail();
                DataTable dt = bllRetail.GetList(" Retail_Status=100 ").Tables[0];
                Order_RetailID.DataSource = dt;
                Order_RetailID.DataValueField = "Retail_ID";
                Order_RetailID.DataTextField = "Retail_Name";
                Order_RetailID.DataBind();
                Order_RetailID.Items.Insert(0, new ListItem("-所有门市-", "0"));
            }
        }
    }
}